@import 'tool-kits';

body {
  display: flex;
  flex-direction: column;
}

nav {
  height: 5vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: @color-blue;
  .logo {
    margin-left: 30px;
    vertical-align: middle;
    color: #fff;
  }
  #exportTable {
    padding: 0 10px;
    line-height: 28px;
    font-size: 16px;
    color: @color-deep-gray;
    background-color: @color-blue;
    border-radius: 5px;
    border: none;
    &:hover,
    &:focus {
      background-color: @color-deep-gray;
      color: @color-blue;
      border: none;
      cursor: pointer;
    }
    transition: all 0.5s;
    vertical-align: middle;
    margin-right: 30px;
  }
}

main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  .newRecord {
    font-size: @font-size-h4;
    display: flex;
    align-items: center;
    padding: 14px 10px;
    .addRecord {
      padding: 14px 20px;
      height: 56px;
      width: 100%;
      border-radius: 10px;
      border: @color-deep-gray 1px solid;
      background-color: @color-gray;
      display: flex;
      align-items: center;
      gap: 10px;
      #newRecordName,
      #newRecordAge,
      #newRecordSubmit {
        line-height: 28px;
        font-size: 16px;
        border: 1px solid @color-gray;
        border-radius: 5px;
        &:hover,
        &:focus {
          border: 1px solid @color-blue;
        }
        transition: all 0.5s;
      }
      #newRecordName {
        flex-grow: 1;
      }
      #newRecordSubmit {
        padding: 0 10px;
        border: none;
        &:hover,
        &:focus {
          background-color: @color-blue;
          color: @color-light-gray;
          border: none;
          cursor: pointer;
        }
      }
      & > * {
        border: none;
        outline: none;
      }
    }
  }
  .recordItems {
    width: 100%;
    flex-grow: 1;
    padding: 0 10px;
    position: relative;
    .recordItem {
      padding: 0 20px;
      border-bottom: 2px @color-gray solid;
      height: 56px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      gap: 10px;
      .recordName,
      .recordAge,
      .remove {
        line-height: 28px;
        font-size: 16px;
        border: 1px solid rgba(0, 0, 0, 0);
        border-radius: 5px;
        &:hover,
        &:focus {
          border: 1px solid @color-blue;
        }
        transition: all 0.5s;
      }
      .recordName {
        flex-grow: 1;
      }
      .remove {
        padding: 0 10px;
        line-height: 28px;
        font-size: 16px;
        border: none;
        background-color: #fff;
        &:hover,
        &:focus {
          background-color: @color-red;
          color: @color-light-gray;
          border: none;
          cursor: pointer;
          transition: all 0.5s;
        }
      }
      & > * {
        border: none;
        outline: none;
      }
    }
  }
}

.expAlertWapper {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  &.active {
    display: block;
  }
  .expAlert {
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    height: 60%;
    background-color: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 50px;
    .typeCpb {
      height: 40%;
      display: flex;
      align-items: center;
      gap: 10px;
      span {
        flex-grow: 0;
        width: 150px;
      }
      textarea {
        border: none;
        flex-grow: 1;
        height: 80%;
        border: none;
        border: 1px @color-gray solid;
        outline: #fff;
        resize: none;
        &:hover,
        &:focus,
        &:active {
          border: 1px @color-blue solid;
        }
        transition: all 0.5s;
      }
      button {
        flex-grow: 0;
        padding: 5px 10px;
        line-height: 28px;
        font-size: 16px;
        border: none;
        background-color: @color-gray;
        border-radius: 5px;
        &:hover,
        &:focus {
          background-color: @color-blue;
          color: @color-light-gray;
          border: none;
          cursor: pointer;
          transition: all 0.5s;
        }
      }
    }
    .backWapper {
      height: 20%;
      display: flex;
      align-self: flex-end;
      align-items: center;
      .back {
        padding: 7px 15px;
        line-height: 28px;
        font-size: 16px;
        border: none;
        background-color: @color-gray;
        border-radius: 5px;
        &:hover,
        &:focus {
          background-color: @color-blue;
          color: @color-light-gray;
          border: none;
          cursor: pointer;
          transition: all 0.5s;
        }
      }
    }
  }
}
